package fanglimao.hyear2.registry;

import fanglimao.hyear2.HiddenYears2;
import net.fabricmc.fabric.api.itemgroup.v1.FabricItemGroup;
import net.minecraft.item.ItemGroup;
import net.minecraft.item.ItemStack;
import net.minecraft.registry.Registries;
import net.minecraft.registry.Registry;
import net.minecraft.text.Text;
import net.minecraft.util.Identifier;

public class ModItemGroups {
    public static final ItemGroup FUELS_GROUP = FabricItemGroup.builder()
            .icon(() -> new ItemStack(ModItems.FUEL_METAL))
            .displayName(Text.translatable("itemGroup.hyear2.fuels"))
            .entries((context, entries) -> {
                entries.add(ModItems.FUEL_METAL);
                entries.add(ModItems.NIGHTMARE_FUEL_METAL);
                entries.add(ModItems.CROP_FUEL_METAL);
                entries.add(ModItems.FUEL_METAL_STICK);
                entries.add(ModItems.MINERAL_CHARCOAL);
                entries.add(ModItems.MINERAL_COAL);
                entries.add(ModItems.MINERAL_FUEL_METAL);
                entries.add(ModBlocks.FUEL_METAL_ORE);
                entries.add(ModBlocks.DEEPSLATE_FUEL_METAL_ORE);
            })
            .build();

    public static void register() {
        Registry.register(Registries.ITEM_GROUP, new Identifier(HiddenYears2.MOD_ID, "fuels_group"), FUELS_GROUP);
    }
}